home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_100 / 104_01 / read.me < prev    next >
Text File  |  1980-01-01  |  4KB  |  184 lines

  1. c.def        Has all static and macros defintion for "C" compiler
  2.  
  3. c1.c        Has main line and opening text plus #include, 
  4.         #if, #nif,error summary, dumpingt extern ,
  5.         and static area
  6.  
  7. c2.c        Has new function handleing ,statement parser, 
  8.         some ending charater check routines, compound statement,
  9.         if statement, while statement,switch statement, for statement
  10.         return statement, break statement, contiune statement,
  11.         #asm statement,  #endasm
  12.  
  13. c3.c,c4.5    have needed utils and other little function
  14.  
  15. c5.c-c7.c    expression handler             
  16.  
  17. c8.c-c9.c    code generation for the compiler
  18.  
  19. c.sub        submit script to compile the current version of the compiler
  20.         and link it.
  21.  
  22. cl.sub        submit script to link the compiler if all crl file exist
  23.  
  24. cc.sub        submit script to run the compiler used by typeing
  25.         "submit filename"
  26.  
  27. runtime.asm    source to runtime routines needed by the compiler
  28.  
  29. runtime.txt    object of runtime.asm
  30.  
  31. stdlib.asm    a few assembler function that one needs ...
  32.         thing link puts,putch,gets,getch, ...
  33.  
  34. stdlib.txt    object of stdlib.c
  35.  
  36. function.asm    needed assemble function for speed...
  37.         strcpy,strcat,strpos,strlen
  38.  
  39. function.crl    bdsc object format of this function
  40.  
  41. c1.com        compile version of the compiler
  42.  
  43. assemble.com    assembler needed to assemble output from the c compiler
  44.  
  45. link.com    link to link files 
  46.  
  47. submit.c    a copy of a submit written in c that aollow nesting of submits
  48.  
  49. time.c        a copy of a program that get a d set time for qt clock board
  50.  
  51. ==============================================================================
  52. what my version of small c has:
  53.  
  54.     statements:
  55.  
  56.     #asm            allow assembler code to follow
  57.  
  58.     #endasm            to end assembler code and go back to c
  59.  
  60.     #define            macro definition
  61.  
  62.     #ifdef  constant     see if  defined
  63.  
  64.     #ifndef    constant    see if not defined
  65.  
  66.     #include <file name>    include source from file fname
  67.  
  68.     int    identifier,...    define a 16 bit integer
  69.  
  70.     char    identifier,..    define a 8 bit unsigned value
  71.  
  72.     {}            defines a block of statements
  73.  
  74.     if (expression) statement; {else statement;} 
  75.                     
  76.     while (expression) statement;
  77.  
  78.     for(expression; expression; expression) statement;
  79.  
  80.     switch(expression) { case constant: default : }
  81.  
  82.     return {expression};
  83.  
  84.     break;
  85.  
  86.     contiune;
  87.  
  88.  
  89. operators:
  90.     
  91.     * expression
  92.  
  93.     & lvale
  94.  
  95.     - expression
  96.  
  97.     ~ expression
  98.  
  99.     ++ lvalue
  100.  
  101.     -- lvalue
  102.  
  103.     lvalue ++
  104.  
  105.     lvalue --
  106.  
  107.     expression + expression
  108.  
  109.     expression - expression
  110.  
  111.     expression * expression
  112.  
  113.     expression / expression
  114.  
  115.     expression % expression
  116.  
  117.     expression << expression
  118.  
  119.     expression >> expression
  120.  
  121.     expression &  expression
  122.     
  123.     expression ^  expression
  124.  
  125.     expression |  expression
  126.  
  127.     expression && expression
  128.  
  129.     expression !! expression
  130.  
  131.     expression <  expression
  132.  
  133.     expression >  expression
  134.  
  135.     expression <= expression
  136.  
  137.     expression >= expression
  138.  
  139.     ! expression
  140.  
  141.     lvalue = expression
  142.  
  143.     lvalue += expression
  144.  
  145.     lvalue -= expression
  146.  
  147.     lvalue *= expression
  148.  
  149.     lvalue /= expression
  150.  
  151.     lvalue %= experession
  152.  
  153.     lvalue &= expression
  154.  
  155.     lvalue ^= expression
  156.  
  157.     lvalue != expression
  158.  
  159. constant:
  160.  
  161.     n        just a base ten number
  162.  
  163.     \n,\r,\t,\b,\f    just a few character constant
  164.     \\,\",\'
  165.  
  166.     \nnn        a base 8 number
  167.  
  168.     0xnn        a base 16 number
  169.  
  170. =============================================================================
  171. compiler used to compile programs is bdsc 1.41 
  172. memory in system is 56k 
  173.  
  174.     Mike Bernson
  175.     2103 Glencoe Hills APT 6
  176.     Ann Abror, Mi 48104
  177.  
  178.     Phone 313-973-6404 or
  179.           313-996-0646
  180.  
  181.     if any problem come up please give me a call or write
  182. 
  183. 
  184. A² \╬&Avw.∩ kjç┬Dz ¡#¢ëU}M  ì/ªNN] òg½µ╒g┐  ╙d╙τ¢  ì╟½:╕ ≥√ δ═$≈∩ ^æS⌐½░╢²±yîKiⁿ╦ Nl$₧u£╣ »∩╥Σ_╠  Oû'&╜² ¥²û|⌡ï ▐é}